<template>
    <div class="messageBox">
        <div class="title">
            {{ title }}
            <i @click="closeFn"></i>
        </div>
        <div class="form">
            <div class="ft14 fc-black pb24">
                {{ content }}
            </div>
            <div class="modal-btns">
                <div class="save-btn" @click="callback">确定</div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name:'messageBox',
    props:{
        indexClose:{
            type:String,
            default:'close',
            required:false,
        },
        title:{
            type:String,
            default:'',
            required:false,
        },
        content:{
            type:String,
            default:'',
            required:false,
        }
    },
    data() {
        return {
        }
    },
    created() {
    },
    methods: {
        //关闭
        closeFn() {
            this.$emit("close",this.indexClose);
        },
        callback() {
            this.$emit("callback",true,this.indexClose);
        },
    }
}
</script>

<style scoped type="text/scss" lang="scss">
.messageBox {
    position: absolute;
    background-color: #FFFFFF;
    border-radius: 6px;
    width: 575px;
	height: 173px;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    padding: 32px 32px 0 32px;
    overflow: hidden;
    > .title {
        line-height: 1.1;
        font-size: 16px;
        color: #454a55;
        position: relative;
        height: 48px;
        font-weight: 600;
        > i {
            background-size: 16px 17px;
            background-position: center;
            background-repeat: no-repeat;
            position: absolute;
            width: 16px;
            height: 17px;
            background-image: url("~@/assets/img/close_icon.png");
            top: 0px;
            right: 0px;
            cursor: pointer;
        }
    }

    .form {
        .el-form-item__label {
            padding-right: 16px;
        }
        .modal-btns{
            display: flex;
            flex-direction:row-reverse;
        }
        .cancel-btn, .save-btn {
            display: inline-block;
            border-radius: 6px;
            width: 88px;
            line-height: 32px;
            text-align: center;
            cursor: pointer;
        }
        .save-btn {
            background-color: #0755db;
            color: #FFFFFF;
        }
        .cancel-btn {
            color: #b3c0c9;
        }
        .add-manager {
            position: absolute;
            width: 38px;
            height: 38px;
            background-image: url("~@/assets/img/project/add_manager_icon1.png");
            background-size: 38px 38px;
            background-repeat: no-repeat;
            background-position: center;
            cursor: pointer;
        }
        .add-manager:hover{
            background-image: url("~@/assets/img/project/add_manager_icon2.png");
        }
    }
    .ic_accomplish{
        width: 14px;
        height: 14px;
        background-image: url("~@/assets/img/project/info/ic_accomplish.png");
    }
}
</style>
<style lang="scss" type="text/scss">
.form {
    .el-form-item__label {
        padding-right: 16px;
    }
    .el-input__inner, .el-textarea__inner {
        width: 400px;
        background-color: #f2f6f9;
    }
    .el-date-editor--date, .el-date-editor--time {
        .el-input__inner {
        width: 176px;
        }
    }
    .el-input__inner:focus, .el-textarea__inner:focus {
        background-color: #FFFFFF;
    }
    .line-time {
        width: 20px;
    }
}
</style>
